package ifi.card.main;

import ifi.card.Funtion.RegularFuntion;
import android.graphics.Bitmap;
import android.graphics.Canvas;

public class DrawButton {
	RegularFuntion fonction = new RegularFuntion();

	public void drawButton(Canvas canvas, Bitmap bitmapButton1,
			Bitmap bitmapButton2, int statusButton1, int statusButton2) {
		switch (statusButton1) {
		case 1:
			fonction.drawPartImg(canvas, bitmapButton1,0, 295, 0, 0,
					150, bitmapButton1.getHeight());
			break;
		case 2:
			fonction.drawPartImg(canvas, bitmapButton1,150, 295, 150, 0,
					150, bitmapButton1.getHeight());
			break;
		case 3:
			fonction.drawPartImg(canvas, bitmapButton1,500, 295, 500, 0,
					150, bitmapButton1.getHeight());
			break;
		case 4:
			fonction.drawPartImg(canvas, bitmapButton1,650, 295, 650, 0,
					150, bitmapButton1.getHeight());
			break;
		default:
			break;
		}

	}
}
